import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
// import set from '@dfeidao/atom-web/local/set';
import get from '@dfeidao/atom-web/local/get';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from "@dfeidao/atom-web/render/render";
// import p001 from './p001';
import p002 from './p002';

export default async function a002(fd: IFeidaoAiBrowserComponent) {
	// todo

	const a = get(fd, "data-n");// 接收

	console.log(a); // 输出在控制台

	const res = await nodejs('basic-data-wzz/zj-000002/s002', {
		page: {
			no: 1,
			value_no: a
		}
	});

	console.log(res);// 输出在控制台

	render(fd, res, p002, 'p002', 'inner');

}
